<!DOCTYPE html>
<html lang='zh-CN'>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <include file="Public/title"/>
    <style type="text/css">
    </style>
</head>

<body>
<div class="mainWrap">

    <!--标题-->
    <div class="mainWrapHeader">
        <h1 class="mainWrapTit"></h1>
    </div>
    <!--标题-->
    <div class="mainWrapBd">
        <div class="tab-con" id="tab-works">
            <table cellpadding="0" border="0" cellspacing="0" class="stdedit">
                <tr>
                    <th>店铺名称</th>
                    <td><input type="text" name="store_name" id="store_name" class="sys_text"
                               value="{$info['store_name']}" readonly/></td>
                    <th>店长名字</th>
                    <td><input type="text" name="manager_name" id="manager_name" class="sys_text"
                               value="{$info['manager_name']}" readonly/></td>
                </tr>
                <tr>
                    <th>店铺头像</th>
                    <td>
                        <img src="{$info['headimg']|getImgUrl}" alt="" style="width:240px">
                    </td>
                </tr>
                <tr>
                    <th>登录账号（手机号）</th>
                    <td><input type="text" name="mobile" id="mobile" class="sys_text" value="{$info['mobile']}"
                               readonly/></td>
                    <th>座机电话（选填）</th>
                    <td><input type="text" name="telephone" id="telephone" class="sys_text" value="{$info['telephone']}"
                               readonly/></td>
                </tr>
                <tr>
                    <th>所在地区:</th>
                    <td>
                        <input type="text" id="province" class="sys_text" name="province"
                               value="{$info['province']}{$info['city']}{$info['area']}" readonly>
                    </td>
                    <th>详细地址</th>
                    <td><input type="text" name="address" id="address" class="sys_text" value="{$info['address']}"
                               readonly/></td>
                </tr>
                <if condition="empty($ads) neq true">
                <tr>
                    <th>广告位</th>
                    <td colspan="3">
                        <div class="setWrap ruleWrap ruleWrapCur">
                            <div class="setWrapBody">
                                <ul class="clearfix ruleList">
                                    <li style="width: 100%;">
                                        <label>
                                            <volist name="ads" id="foo">
                                                {$foo['ad_name']}
                                                <img src="/{$foo['filepath']}" style="width:100px;height:100px;margin-right: 20px"/>
                                            </volist>
                                        </label>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </td>
                </tr>
                <else />
                    <th>广告位</th>
                    <td colspan="3">
                        广告位为空
                    </td>
                </if>
                <tr>
                    <th>备注</th>
                    <td><input type="text" name="remark" id="remark" class="sys_text" value="{$info['remark']}"
                               readonly/></td>
                </tr>
            </table>
        </div>
        <div class="stdeditSubmit">
            <input type="button" value="返回门店列表" class="reset" onclick="storeIndex()"/>
        </div>
    </div>
</div>
</body>
</html>

<script type="text/javascript">
    function storeIndex() {
        window.location.href = "{:U('index')}";
    }
</script>